const TOKEN_KEY = 'hmmm-token' // token的名字

// 存token
const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token)
}

// 删除token
const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY)
}

// 获取token
const getToken = () => {
  return localStorage.getItem(TOKEN_KEY)
}

export { setToken, getToken, removeToken }